package com.flac.flacservice.mapper;

import com.flac.flacservice.pojo.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flac.flacservice.pojo.query.UserInfoQuery;
import com.flac.flacservice.pojo.vo.UserInfoDTO;
import com.flac.flacservice.pojo.vo.UserInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DaYouZi
 * @since 2023-03-06
 */
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    List<UserInfoVO> listPage(UserInfoQuery userInfoQuery);

    UserInfoVO getInfoById(Integer id);

    Boolean removeInfoById(Integer id);

    Boolean updateInfoById(UserInfoDTO userInfoDTO);

    Boolean insertUserInfo(UserInfoDTO userInfoDTO);

    Boolean resumeById(Integer id);

    Boolean foreverRemove(Integer id);
}
